package com.haidechizi.doublecache.configuration;

import com.haidechizi.doublecache.aop.DoubleCacheAspect;
import com.haidechizi.doublecache.process.DeleteProcessService;
import com.haidechizi.doublecache.process.GetProcessService;
import com.haidechizi.doublecache.process.PutProcessService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 */
@Configuration
public class DoubleCacheConfiguration {


    @Bean
    public DoubleCacheAspect doubleCacheAspect() {
        return new DoubleCacheAspect();
    }

    @Bean
    public DeleteProcessService deleteProcessService() {
        return new DeleteProcessService();
    }

    @Bean
    public GetProcessService getProcessService() {
        return new GetProcessService();
    }

    @Bean
    public PutProcessService putProcessService() {
        return new PutProcessService();
    }
}
